


<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
     #southeastRegion tbody tr:nth-child(odd){background:#e7f7ff }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
        <h2 class="title_color text-center">财年(<span>{$cainian.title}</span>)网点营销费用报表-费用科目占比分析(单位：元)</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action=""  class="form-inline">
      <table class="tab-content table-bordered  table" border="1" style="margin-bottom:1px">
            <tr>
               <td>
                <button class="btn-info btn text-left" type="button" onclick="dc('{$pid}','{$cid}','{$kid}')">导出Excel</button>
             </td>
            </tr>
      </table>
      <table class="table table-bordered table-hover text-right bud_hei" id="southeastRegion">
          <tr class="info">
            <th class="text-center">网点名</th>
            <th class="text-center">&nbsp;</th>
             {volist name="kaohe1" id="row"}
              <th class="text-center">{$row.title}</th>
           {/volist}
            <th class="text-center">平均</th>
            <th class="text-center">小计</th>
          </tr>
          <tbody style="border:0">
			{volist name="farr" id="f"}
            <tr class="text-center">
              <td rowspan="{$f.ckemu}">{$f.title}<br><a class="J_menuItem" href="{:url('propotionpie')}?kid={$kid}&fid={$f.id}&cid={$cid}">占比饼图</a></td>
              <td>{$f.kemu.0.title}</td>
              <td class="ObjectNum jisuan1">{$f.kemu.0.jine.0}</td>
              <td class="ObjectNum jisuan2">{$f.kemu.0.jine.1}</td>
              <td class="ObjectNum jisuan3">{$f.kemu.0.jine.2}</td>
              <td class="ObjectNum jisuan4">{$f.kemu.0.jine.3}</td>
              <td class="ObjectNum jisuan5">{$f.kemu.0.jine.4}</td>
              <td class="ObjectNum jisuan6">{$f.kemu.0.jine.5}</td>
              <td class="ObjectNum jisuan7">{$f.kemu.0.jine.6}</td>
              <td class="ObjectNum jisuan8">{$f.kemu.0.jine.7}</td>
              <td class="ObjectNum jisuan9">{$f.kemu.0.jine.8}</td>
              <td class="ObjectNum jisuan10">{$f.kemu.0.jine.9}</td>
              <td class="ObjectNum jisuan11">{$f.kemu.0.jine.10}</td>
              <td class="ObjectNum jisuan12">{$f.kemu.0.jine.11}</td>
              <td class="ObjectNum jisuan13">{$f.kemu.0.avg}</td>
              <td class="ObjectNum warning jisuan14">{$f.kemu.0.zjine}</td>
            </tr>
            {volist name="$f.kemu" id="ke" offset='1'}
             <tr class="text-center">
              <td class="text-center">{$ke.title}</td>
              <td class="ObjectNum jisuan1">{$ke.jine.0}</td>
              <td class="ObjectNum jisuan2">{$ke.jine.1}</td>
              <td class="ObjectNum jisuan3">{$ke.jine.2}</td>
              <td class="ObjectNum jisuan4">{$ke.jine.3}</td>
              <td class="ObjectNum jisuan5">{$ke.jine.4}</td>
              <td class="ObjectNum jisuan6">{$ke.jine.5}</td>
              <td class="ObjectNum jisuan7">{$ke.jine.6}</td>
              <td class="ObjectNum jisuan8">{$ke.jine.7}</td>
              <td class="ObjectNum jisuan9">{$ke.jine.8}</td>
              <td class="ObjectNum jisuan10">{$ke.jine.9}</td>
              <td class="ObjectNum jisuan11">{$ke.jine.10}</td>
              <td class="ObjectNum jisuan12">{$ke.jine.11}</td>
              <td class="ObjectNum jisuan13">{$ke.avg}</td>
              <td class="ObjectNum warning jisuan14">{$ke.zjine}</td>
            </tr>
            {/volist}
          {/volist}
       <tr class="trTotal">
               <td colspan="2">合计</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
                <td class="ObjectNum">-</td>
            </tr>
          </tbody>
      </table>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    function dc(pid,cid,kid){
      window.open("{:url('daochuqu')}?pid="+pid+"&kid="+kid+"&cid="+cid)
    }
     for(var i=1;i<=14;i++){
      var he=0;
      $(".jisuan"+i).each(function(){
        he+=parseFloat($(this).html());

      })
      $(".zonghe"+i).html(he);
    }
       $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
              var trLen=$("#southeastRegion tbody").children("tr").length;
              $(".fenquN").attr("rowspan",trLen-2);

                 var trC= $("#southeastRegion tbody tr");
                 $(".trTotal").css("background-color","#f7f3f7")
        trC.each(function(){
            $(this).find("td").eq(-1).css("background-color","#f7f3f7")
         var trTdlen= $(this).find('td').length;
      
         if(trTdlen==16){
            $(this).find("td").eq(0).css("background-color","#e7f7ff");
         
         }
        })
             });
    </script>
</body>

</html>
